package com.baizhiedu;

import com.baizhiedu.bean.Customer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * ClassName: AppConfig3
 * Description:
 * Date: 2022/12/03 PM 10:34:37
 * <p>
 * project: spring5
 * package: com.baizhiedu.bean
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Configuration
@ComponentScan(basePackages = "com.baizhiedu.bean")
@ImportResource("classpath:applicationContext.xml")
public class AppConfig3 {

    @Bean
    public Customer customer() {
        Customer customer = new Customer();
        customer.setId(1);
        customer.setName("xiaojr");
        return customer;
    }
}
